package com.cfl.usermodule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import com.cfl.usermodule.service.UserService;
import com.cfl.usermodule.service.impl.UserServiceImpl;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableEurekaClient
@ComponentScan(basePackages = "com.cfl.usermodule")
public class UserModuleApplication {

	@Bean
	public UserService userService() {
		return new UserServiceImpl();
	};
	
	public static void main(String[] args) throws Exception {
		SpringApplication.run(UserModuleApplication.class, args);
	}
}
